<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="retail_v2alpha.html">Vertex AI Search for commerce API</a> . <a href="retail_v2alpha.projects.html">projects</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="retail_v2alpha.projects.locations.html">locations()</a></code>
</p>
<p class="firstline">Returns the locations Resource.</p>

<p class="toc_element">
  <code><a href="retail_v2alpha.projects.operations.html">operations()</a></code>
</p>
<p class="firstline">Returns the operations Resource.</p>

<p class="toc_element">
  <code><a href="retail_v2alpha.projects.retailProject.html">retailProject()</a></code>
</p>
<p class="firstline">Returns the retailProject Resource.</p>

<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#enrollSolution">enrollSolution(project, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">The method enrolls a solution of type Retail Search into a project. The Recommendations AI solution type is enrolled by default when your project enables Retail API, so you don't need to call the enrollSolution method for recommendations.</p>
<p class="toc_element">
  <code><a href="#getAlertConfig">getAlertConfig(name, x__xgafv=None)</a></code></p>
<p class="firstline">Get the AlertConfig of the requested project.</p>
<p class="toc_element">
  <code><a href="#getLoggingConfig">getLoggingConfig(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets the LoggingConfig of the requested project.</p>
<p class="toc_element">
  <code><a href="#getRetailProject">getRetailProject(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets the project. Throws `NOT_FOUND` if the project wasn't initialized for the Retail API service.</p>
<p class="toc_element">
  <code><a href="#listEnrolledSolutions">listEnrolledSolutions(parent, x__xgafv=None)</a></code></p>
<p class="firstline">Lists all the retail API solutions the project has enrolled.</p>
<p class="toc_element">
  <code><a href="#updateAlertConfig">updateAlertConfig(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Update the alert config of the requested project.</p>
<p class="toc_element">
  <code><a href="#updateLoggingConfig">updateLoggingConfig(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates the LoggingConfig of the requested project.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="enrollSolution">enrollSolution(project, body=None, x__xgafv=None)</code>
  <pre>The method enrolls a solution of type Retail Search into a project. The Recommendations AI solution type is enrolled by default when your project enables Retail API, so you don&#x27;t need to call the enrollSolution method for recommendations.

Args:
  project: string, Required. Full resource name of parent. Format: `projects/{project_number_or_id}` (required)
  body: object, The request body.
    The object takes the form of:

{ # Request for EnrollSolution method.
  &quot;solution&quot;: &quot;A String&quot;, # Required. Solution to enroll.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # This resource represents a long-running operation that is the result of a network API call.
  &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
      {
        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
      },
    ],
    &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  },
  &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
  },
  &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="getAlertConfig">getAlertConfig(name, x__xgafv=None)</code>
  <pre>Get the AlertConfig of the requested project.

Args:
  name: string, Required. Full AlertConfig resource name. Format: projects/{project_number}/alertConfig (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Project level alert config.
  &quot;alertPolicies&quot;: [ # Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]
    { # Alert policy for a customer.
      &quot;alertGroup&quot;: &quot;A String&quot;, # The feature that provides alerting capability. Supported value: - `search-data-quality` for retail search customers. - `conv-data-quality` for retail conversation customers.
      &quot;enrollStatus&quot;: &quot;A String&quot;, # The enrollment status of a customer.
      &quot;recipients&quot;: [ # Recipients for the alert policy. One alert policy should not exceed 20 recipients.
        { # Recipient contact information.
          &quot;emailAddress&quot;: &quot;A String&quot;, # Email address of the recipient.
        },
      ],
    },
  ],
  &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig
}</pre>
</div>

<div class="method">
    <code class="details" id="getLoggingConfig">getLoggingConfig(name, x__xgafv=None)</code>
  <pre>Gets the LoggingConfig of the requested project.

Args:
  name: string, Required. Full LoggingConfig resource name. Format: projects/{project_number}/loggingConfig (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Project level logging config to control what level of log will be generated and written to Cloud Logging.
  &quot;defaultLogGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies by default to all services supporting log generation. It can be overridden by ServiceLogGenerationRule for service level control.
    &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
    &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
  },
  &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
  &quot;serviceLogGenerationRules&quot;: [ # Controls logging configurations more granularly for each supported service. This overrides the default_log_generation_rule for the services specified. For those not mentioned, they will fallback to the default log generation rule.
    { # The granular logging configurations for supported services.
      &quot;logGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies to this service.
        &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
        &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
      },
      &quot;serviceName&quot;: &quot;A String&quot;, # Required. Supported service names: &quot;CatalogService&quot;, &quot;CompletionService&quot;, &quot;ControlService&quot;, &quot;MerchantCenterStreaming&quot;, &quot;ModelService&quot;, &quot;PredictionService&quot;, &quot;ProductService&quot;, &quot;ServingConfigService&quot;, &quot;UserEventService&quot;,
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="getRetailProject">getRetailProject(name, x__xgafv=None)</code>
  <pre>Gets the project. Throws `NOT_FOUND` if the project wasn&#x27;t initialized for the Retail API service.

Args:
  name: string, Required. Full resource name of the project. Format: `projects/{project_number_or_id}/retailProject` (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Metadata that describes a Cloud Retail Project.
  &quot;enrolledSolutions&quot;: [ # Output only. Retail API solutions that the project has enrolled.
    &quot;A String&quot;,
  ],
  &quot;name&quot;: &quot;A String&quot;, # Output only. Full resource name of the retail project, such as `projects/{project_id_or_number}/retailProject`.
}</pre>
</div>

<div class="method">
    <code class="details" id="listEnrolledSolutions">listEnrolledSolutions(parent, x__xgafv=None)</code>
  <pre>Lists all the retail API solutions the project has enrolled.

Args:
  parent: string, Required. Full resource name of parent. Format: `projects/{project_number_or_id}` (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for ListEnrolledSolutions method.
  &quot;enrolledSolutions&quot;: [ # Retail API solutions that the project has enrolled.
    &quot;A String&quot;,
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="updateAlertConfig">updateAlertConfig(name, body=None, updateMask=None, x__xgafv=None)</code>
  <pre>Update the alert config of the requested project.

Args:
  name: string, Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig (required)
  body: object, The request body.
    The object takes the form of:

{ # Project level alert config.
  &quot;alertPolicies&quot;: [ # Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]
    { # Alert policy for a customer.
      &quot;alertGroup&quot;: &quot;A String&quot;, # The feature that provides alerting capability. Supported value: - `search-data-quality` for retail search customers. - `conv-data-quality` for retail conversation customers.
      &quot;enrollStatus&quot;: &quot;A String&quot;, # The enrollment status of a customer.
      &quot;recipients&quot;: [ # Recipients for the alert policy. One alert policy should not exceed 20 recipients.
        { # Recipient contact information.
          &quot;emailAddress&quot;: &quot;A String&quot;, # Email address of the recipient.
        },
      ],
    },
  ],
  &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig
}

  updateMask: string, Indicates which fields in the provided AlertConfig to update. If not set, all supported fields are updated.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Project level alert config.
  &quot;alertPolicies&quot;: [ # Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]
    { # Alert policy for a customer.
      &quot;alertGroup&quot;: &quot;A String&quot;, # The feature that provides alerting capability. Supported value: - `search-data-quality` for retail search customers. - `conv-data-quality` for retail conversation customers.
      &quot;enrollStatus&quot;: &quot;A String&quot;, # The enrollment status of a customer.
      &quot;recipients&quot;: [ # Recipients for the alert policy. One alert policy should not exceed 20 recipients.
        { # Recipient contact information.
          &quot;emailAddress&quot;: &quot;A String&quot;, # Email address of the recipient.
        },
      ],
    },
  ],
  &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig
}</pre>
</div>

<div class="method">
    <code class="details" id="updateLoggingConfig">updateLoggingConfig(name, body=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates the LoggingConfig of the requested project.

Args:
  name: string, Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig (required)
  body: object, The request body.
    The object takes the form of:

{ # Project level logging config to control what level of log will be generated and written to Cloud Logging.
  &quot;defaultLogGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies by default to all services supporting log generation. It can be overridden by ServiceLogGenerationRule for service level control.
    &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
    &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
  },
  &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
  &quot;serviceLogGenerationRules&quot;: [ # Controls logging configurations more granularly for each supported service. This overrides the default_log_generation_rule for the services specified. For those not mentioned, they will fallback to the default log generation rule.
    { # The granular logging configurations for supported services.
      &quot;logGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies to this service.
        &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
        &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
      },
      &quot;serviceName&quot;: &quot;A String&quot;, # Required. Supported service names: &quot;CatalogService&quot;, &quot;CompletionService&quot;, &quot;ControlService&quot;, &quot;MerchantCenterStreaming&quot;, &quot;ModelService&quot;, &quot;PredictionService&quot;, &quot;ProductService&quot;, &quot;ServingConfigService&quot;, &quot;UserEventService&quot;,
    },
  ],
}

  updateMask: string, Indicates which fields in the provided LoggingConfig to update. The following are the only supported fields: * LoggingConfig.default_log_generation_rule * LoggingConfig.service_log_generation_rules If not set, all supported fields are updated.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Project level logging config to control what level of log will be generated and written to Cloud Logging.
  &quot;defaultLogGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies by default to all services supporting log generation. It can be overridden by ServiceLogGenerationRule for service level control.
    &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
    &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
  },
  &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
  &quot;serviceLogGenerationRules&quot;: [ # Controls logging configurations more granularly for each supported service. This overrides the default_log_generation_rule for the services specified. For those not mentioned, they will fallback to the default log generation rule.
    { # The granular logging configurations for supported services.
      &quot;logGenerationRule&quot;: { # The logging configurations for services supporting log generation. # The log generation rule that applies to this service.
        &quot;infoLogSampleRate&quot;: 3.14, # The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
        &quot;loggingLevel&quot;: &quot;A String&quot;, # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
      },
      &quot;serviceName&quot;: &quot;A String&quot;, # Required. Supported service names: &quot;CatalogService&quot;, &quot;CompletionService&quot;, &quot;ControlService&quot;, &quot;MerchantCenterStreaming&quot;, &quot;ModelService&quot;, &quot;PredictionService&quot;, &quot;ProductService&quot;, &quot;ServingConfigService&quot;, &quot;UserEventService&quot;,
    },
  ],
}</pre>
</div>

</body></html>